package com.xy.blog.user.dao;

import com.xy.blog.core.exception.BaseException;
import com.xy.blog.user.dao.model.OrganizationDO;

import java.util.List;

/**
 * @author zanhonglei
 * @version V1.0
 * @Description:
 * @date 2020/3/4
 */
public interface IOrganizationDao {
    /**
     * 根据编码查询机构
     * @param code
     * @return
     * @throws BaseException
     */
    OrganizationDO getByCode(String code) throws BaseException ;

    /**
     * 查询
     * @param item
     * @return
     */
    List<OrganizationDO> select(OrganizationDO item);

    /**
     *  查询数量
     * @param item
     * @return
     */
    int selectCount(OrganizationDO item);


}
